package com.mcc.system.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 系统访问记录表 sys_logininfor
 *
 * @author gxy
 */
@ApiModel("登陆日志对象")
@Data
public class SysLogininfor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("ID")
    private Long infoId;

    @ApiModelProperty("用户账号")
    private String userName;

    @ApiModelProperty("登录状态 0成功 1失败")
    private String status;

    @ApiModelProperty("登录IP地址")
    private String ipaddr;

    @ApiModelProperty("登录地点")
    private String loginLocation;

    @ApiModelProperty("浏览器类型")
    private String browser;

    @ApiModelProperty("操作系统")
    private String os;

    @ApiModelProperty("提示消息")
    private String msg;

    @ApiModelProperty("访问时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;

    @ApiModelProperty("开始时间")
    @TableField(exist = false)
    private String beginTime;

    @ApiModelProperty("结束时间")
    @TableField(exist = false)
    private String endTime;

}
